package com.lucy.property.module.park.feerule;

import com.lucy.common.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author kindear
 * 停车费用规则
 */
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@Entity
@Table(name = "park_fee_rule")
@ApiModel(value = "停车场收费规则")
public class ParkFeeRule extends BaseEntity implements Serializable {

    @ApiModelProperty("免费时长(min)")
    @Column(name = "fee_time")
    Integer freeTime;

    @ApiModelProperty("计费周期")
    @Column(name = "period")
    Integer period;

    @ApiModelProperty("周期费用")
    @Column(name = "period_fee")
    Double periodFee;


    @ApiModelProperty("最大费用")
    @Column(name = "max_fee")
    Double maxFee;

}
